package com.macrosolution.exdebito

/**
 * Comune
 * A domain class describes the data object and it's mapping to the database
 */
class Comune implements Serializable{

	/* Default (injected) attributes of GORM */
//	Long	id
//	Long	version
	
	/* Automatic timestamping of GORM */
//	Date	dateCreated
//	Date	lastUpdated
	String nome
	String cap
	Provincia provincia
		
	static	constraints = {
		nome(maxSize: 100)
		cap nullable:true
		provincia nullable:true
	}
	

	
	/*
	 * Methods of the Domain Class
	 */
//	@Override	// Override toString for a nicer / more descriptive UI 
//	public String toString() {
//		return "${name}";
//	}
}
